/**
 * Created by Administrator on 2017/6/30 0030.
 */
"use strict";
angular.module('app').controller('SensorSubHeaderCtrl', function ($scope,$http) {
    $http.get(baseurl+'/device_count').then(function(res){
    	// console.log(res.data);
    	if (res.data.ret == 1) {
    		$scope.d_total = res.data.total;
	        $scope.d_error = res.data.warn;
	        $scope.d_ok = res.data.ok;
    	}
    })
});